package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 挑选农家
 */
@Entity(name = "xw_pickparm")
public class XwPickparm {

    /**
     * 挑选农家id
     */
    @Column(name = "pick_farm_id")
    private Integer pickFarmId;

    /**
     * 农家加密id
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 用户加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 农家类型（农家乐，渔家乐……）只能是一个类型
     */
    @Column(name = "pick_farm_type")
    private String pickFarmType;

    /**
     * 农家类型加密id（可多个id，以，逗号进行分隔）
     */
    @Column(name = "farmType_encryptId")
    private String farmtypeEncryptid;

    /**
     *  企业名称
     */
    @Column(name = "pick_farm_companyName")
    private String pickFarmCompanyname;

    /**
     * 所属城市
     */
    @Column(name = "pick_farm_city")
    private String pickFarmCity;

    /**
     * 详细地址（住所）
     */
    @Column(name = "pick_farm_address")
    private String pickFarmAddress;

    /**
     * 人均消费
     */
    @Column(name = "pick_farm_visitorsNumber")
    private Double pickFarmVisitorsnumber;

    /**
     * 定制时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "pick_farm_time")
    private Date pickFarmTime;

    /**
     * 商铺宣传图
     */
    @Column(name = "pick_farm_photo")
    private String pickFarmPhoto;

    /**
     * 商铺介绍
     */
    @Column(name = "pick_farm_intr")
    private String pickFarmIntr;

    public XwPickparm(){

    }

    public XwPickparm(String farmEncryptid, String userEncryptid, String pickFarmType, String farmtypeEncryptid, String pickFarmCompanyname, String pickFarmCity, String pickFarmAddress, Double pickFarmVisitorsnumber, Date pickFarmTime, String pickFarmPhoto, String pickFarmIntr) {
        this.farmEncryptid = farmEncryptid;
        this.userEncryptid = userEncryptid;
        this.pickFarmType = pickFarmType;
        this.farmtypeEncryptid = farmtypeEncryptid;
        this.pickFarmCompanyname = pickFarmCompanyname;
        this.pickFarmCity = pickFarmCity;
        this.pickFarmAddress = pickFarmAddress;
        this.pickFarmVisitorsnumber = pickFarmVisitorsnumber;
        this.pickFarmTime = pickFarmTime;
        this.pickFarmPhoto = pickFarmPhoto;
        this.pickFarmIntr = pickFarmIntr;
    }

    /**
     * 获取挑选农家id
     *
     * @return pick_farm_id - 挑选农家id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getPickFarmId() {
        return pickFarmId;
    }

    /**
     * 设置挑选农家id
     *
     * @param pickFarmId 挑选农家id
     */
    public void setPickFarmId(Integer pickFarmId) {
        this.pickFarmId = pickFarmId;
    }

    /**
     * 获取农家加密id
     *
     * @return farm_encryptId - 农家加密id
     */
    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    /**
     * 设置农家加密id
     *
     * @param farmEncryptid 农家加密id
     */
    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    /**
     * 获取用户加密id
     *
     * @return user_encryptId - 用户加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置用户加密id
     *
     * @param userEncryptid 用户加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取农家类型（农家乐，渔家乐……）只能是一个类型
     *
     * @return pick_farm_type - 农家类型（农家乐，渔家乐……）只能是一个类型
     */
    public String getPickFarmType() {
        return pickFarmType;
    }

    /**
     * 设置农家类型（农家乐，渔家乐……）只能是一个类型
     *
     * @param pickFarmType 农家类型（农家乐，渔家乐……）只能是一个类型
     */
    public void setPickFarmType(String pickFarmType) {
        this.pickFarmType = pickFarmType;
    }

    /**
     * 获取农家类型加密id（可多个id，以，逗号进行分隔）
     *
     * @return farmType_encryptId - 农家类型加密id（可多个id，以，逗号进行分隔）
     */
    public String getFarmtypeEncryptid() {
        return farmtypeEncryptid;
    }

    /**
     * 设置农家类型加密id（可多个id，以，逗号进行分隔）
     *
     * @param farmtypeEncryptid 农家类型加密id（可多个id，以，逗号进行分隔）
     */
    public void setFarmtypeEncryptid(String farmtypeEncryptid) {
        this.farmtypeEncryptid = farmtypeEncryptid;
    }

    /**
     * 获取 企业名称
     *
     * @return pick_farm_companyName -  企业名称
     */
    public String getPickFarmCompanyname() {
        return pickFarmCompanyname;
    }

    /**
     * 设置 企业名称
     *
     * @param pickFarmCompanyname  企业名称
     */
    public void setPickFarmCompanyname(String pickFarmCompanyname) {
        this.pickFarmCompanyname = pickFarmCompanyname;
    }

    /**
     * 获取所属城市
     *
     * @return pick_farm_city - 所属城市
     */
    public String getPickFarmCity() {
        return pickFarmCity;
    }

    /**
     * 设置所属城市
     *
     * @param pickFarmCity 所属城市
     */
    public void setPickFarmCity(String pickFarmCity) {
        this.pickFarmCity = pickFarmCity;
    }

    /**
     * 获取详细地址（住所）
     *
     * @return pick_farm_address - 详细地址（住所）
     */
    public String getPickFarmAddress() {
        return pickFarmAddress;
    }

    /**
     * 设置详细地址（住所）
     *
     * @param pickFarmAddress 详细地址（住所）
     */
    public void setPickFarmAddress(String pickFarmAddress) {
        this.pickFarmAddress = pickFarmAddress;
    }

    /**
     * 获取人均消费
     *
     * @return pick_farm_visitorsNumber - 人均消费
     */
    public Double getPickFarmVisitorsnumber() {
        return pickFarmVisitorsnumber;
    }

    /**
     * 设置人均消费
     *
     * @param pickFarmVisitorsnumber 人均消费
     */
    public void setPickFarmVisitorsnumber(Double pickFarmVisitorsnumber) {
        this.pickFarmVisitorsnumber = pickFarmVisitorsnumber;
    }

    /**
     * 获取定制时间
     *
     * @return pick_farm_time - 定制时间
     */
    public Date getPickFarmTime() {
        return pickFarmTime;
    }

    /**
     * 设置定制时间
     *
     * @param pickFarmTime 定制时间
     */
    public void setPickFarmTime(Date pickFarmTime) {
        this.pickFarmTime = pickFarmTime;
    }

    /**
     * 获取商铺宣传图
     *
     * @return pick_farm_photo - 商铺宣传图
     */
    public String getPickFarmPhoto() {
        return pickFarmPhoto;
    }

    /**
     * 设置商铺宣传图
     *
     * @param pickFarmPhoto 商铺宣传图
     */
    public void setPickFarmPhoto(String pickFarmPhoto) {
        this.pickFarmPhoto = pickFarmPhoto;
    }

    /**
     * 获取商铺介绍
     *
     * @return pick_farm_intr - 商铺介绍
     */
    public String getPickFarmIntr() {
        return pickFarmIntr;
    }

    /**
     * 设置商铺介绍
     *
     * @param pickFarmIntr 商铺介绍
     */
    public void setPickFarmIntr(String pickFarmIntr) {
        this.pickFarmIntr = pickFarmIntr;
    }

    @Override
    public String toString() {
        return "XwPickparm{" +
                "pickFarmId=" + pickFarmId +
                ", farmEncryptid='" + farmEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", pickFarmType='" + pickFarmType + '\'' +
                ", farmtypeEncryptid='" + farmtypeEncryptid + '\'' +
                ", pickFarmCompanyname='" + pickFarmCompanyname + '\'' +
                ", pickFarmCity='" + pickFarmCity + '\'' +
                ", pickFarmAddress='" + pickFarmAddress + '\'' +
                ", pickFarmVisitorsnumber=" + pickFarmVisitorsnumber +
                ", pickFarmTime=" + pickFarmTime +
                ", pickFarmPhoto='" + pickFarmPhoto + '\'' +
                ", pickFarmIntr='" + pickFarmIntr + '\'' +
                '}';
    }
}